package com.yicong.ants.scenic

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import com.blankj.utilcode.util.BarUtils
import com.bumptech.glide.Glide
import com.yicong.ants.databinding.ScenicRuleFragmentBinding
import com.yicong.ants.manager.config.ZzConfigs

class ScenicRuleFragment : Fragment() {
    private lateinit var binding: ScenicRuleFragmentBinding

    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View {
        BarUtils.setStatusBarLightMode(requireActivity(), false);
        binding = ScenicRuleFragmentBinding.inflate(layoutInflater, container, false)
        return binding.root
    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        binding.backBtn.setOnClickListener { findNavController().navigateUp() }
        Glide.with(this).load(ZzConfigs.getClientConf().ticket_rule_image).into(binding.ruleIv)
    }
}